setDeviceAttribute

fun setDeviceAttribute(context: Context, attributeName: String, attributeValue: Any, workspaceId: String? = null)

Set device attribute for the given workspace id instance (if null, then default instance). Supported value data types are:

  • Number (Int, Long, Double, Float)

  • String

  • Boolean

  • Date (ISO 8601 String)

Parameters

context

instance of Context

attributeName

device attribute key

attributeValue

device attribute value